{template live_header}
<link rel="stylesheet" href="static/calendar/js/calendar.css" />
<script type="text/javascript" charset="utf-8" src="static/calendar/calendar.php"></script>
<style type="text/css">
    .bg{display:none;position:fixed;width:100%;height:100%;background:#000;z-index:2;top:0;left:0;opacity:0.7;}
</style>
<h4 style="padding-left:10px;;">
    <a href="?c=live_admin&a=getList"><span>微课列表</span></a>
    >>
    <span>用户消费汇总</span>
</h4>
<form class="form-horizontal" method="POST" action="?c=live_admin&a=getGoldCostList"  >
    <div class="control-group search-group">
        <label class="control-label" >微课名称：</label>
        <div class="controls">
            <input type="text" value="{$name}" name="name" placeholder="微课标题" />
        </div>
    </div>

    <div class="control-group search-group">
            <input class="btn" type="submit" value="查询" />
        </div>
    </div>

</form>

<div class="bs-docs-example table-align pt-15" style="clear:both;">
    <table class="table table-striped table-align">
        <thead>
        <tr>
            <th>用户</th>
            <th>微课ID</th>
            <th>微课标题</th>
            <th>提问元宝</th>
            <th>礼物元宝</th>
        </tr>
        </thead>
        {if count($list)>0}
        <tbody>
        {loop $list $k $v}
            <tr>
                <td>{$v['uid']} | {$v['nickname']}</td>
                <td>{$v['live_id']}</td>
                <td>{$v['title']}</td>
                <td>{$v['ques_gold_num']}</td>
                <td>{$v['gift_gold_num']}</td>
            </tr>

        {/loop}
        <div id="res"></div>
        </tbody>
        {/if}
    </table>

</div>
<div class="pagination">
    <ul>
        {$pageStr}
    </ul>
</div>
{template footer}